package com.liuda.workbench.service.impl;

import com.liuda.workbench.domain.Contact;
import com.liuda.workbench.mapper.ContactMapper;
import com.liuda.workbench.service.ContactService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactServiceImpl implements ContactService {
    @Autowired
    ContactMapper contactMapper;

    @Override
    public List<Contact> selectByLike(String name) {
        return contactMapper.selectByLike(name);
    }

    @Override
    public List<Contact> selectByCustomerId(String customerId) {
        return contactMapper.selectByCustomerId(customerId);
    }

    @Override
    public List<Contact> selectAllForDetail() {
        return contactMapper.selectAllForDetail();
    }

    @Override
    public Contact selectForDetailById(String id) {
        return contactMapper.selectForDetailById(id);
    }
}
